package com.aiti.lulian.feign;

import com.aiti.base.core.utils.message.Message;

import com.aiti.lulian.dto.SearchDto;
import com.aiti.lulian.entity.ScaleSearchProductDto;
import com.aiti.lulian.feign.config.Configuration;
import com.aiti.lulian.feign.impl.ScaleEnterpriseServiceFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.context.annotation.Primary;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;


@Primary
@FeignClient(name = "cloud-scale-subservice", fallback = ScaleEnterpriseServiceFallBack.class, configuration = Configuration.class)
public interface ScaleEnterpriseService {

    @PostMapping(value = "/searchEnterprise/addEnterpriseNew")
    Message addEnterprise(@RequestBody SearchDto searchDto);

    @PostMapping(value = "/scaleSearchProduct/addSearchProduct")
    Message addSearchProduct(@RequestBody ScaleSearchProductDto searchProductDto);
}
